package com.han.observer.jdk_observer;

import java.util.Observable;
import java.util.Observer;

/**
 * @ClassName Phone
 * @Description 手机观察者
 * @Author duoduo Han
 * @Date 2024/6/17 13:18
 */
public class Phone implements Observer {
    @Override
    public void update(Observable o, Object arg) {
        System.out.println("手机-当前股价："+((Stock)o).getData());
    }
}
